package com.mfangsoft.zhuangjialong.integration.order.mapper;

import java.util.List;
import java.util.Map;

import com.mfangsoft.zhuangjialong.common.model.Page;
import com.mfangsoft.zhuangjialong.common.utils.stereotype.WriterRepository;
import com.mfangsoft.zhuangjialong.integration.order.model.BaseOrder;
import com.mfangsoft.zhuangjialong.integration.order.model.OrderExplain;
import com.mfangsoft.zhuangjialong.integration.order.model.OrderGift;
import com.mfangsoft.zhuangjialong.integration.order.model.OrderInfo;
import com.mfangsoft.zhuangjialong.integration.order.model.ProductInfo;
@WriterRepository
public interface BaseOrderMapper {

	
	List<Map<String,Object>> selectOrderPage(Page<Map<String,Object>> page);
	
	OrderInfo selectOrderDetail(Integer orderId);
	
	void updateOrderStatus(OrderInfo order);
	
	void addOrderExplain(OrderExplain OrderExplain);
	
	void updateExplain(OrderExplain OrderExplain);
	
	OrderExplain selectExplain(Integer shopId);
	
	List<Map<String,Object>> selectOrderGift(Integer orderId);
	List<Map<String,Object>> selectActivityNumRule(Integer activityId);
	List<Map<String,Object>> selectActivityPresentRule(Integer activityId);
	void updateOrder(OrderInfo order);
	
	void deleteOrderProduct(Integer orderId);
	void addOrderProducts(ProductInfo product);
	Integer selectNum(OrderGift orderGift);
	void addOrderGift(OrderGift orderGift);
	
	String selectFiliale(Integer shopId);
	List<ProductInfo> selectOrderProduct(Integer orderId);
	Map<String,Object> selectOrderTotalMoney(Map<String,Object> map);
	List<String> selectOrderGiving(Integer orderId);
}